]> dgit.raspbian.org Git - gnome-shell.git/commit
screenshot: Snap cursor to the center of the handle on press
authorRamez Medhat <iramezdev@gmail.com>
Sat, 28 Mar 2026 15:14:15 +0000 (17:14 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 15 Apr 2026 19:42:25 +0000 (19:42 +0000)
commit9c2712214a1ddc02fb37b605dfdd8a5dd7a4db8b
tree42ace413bda13e5d2fca13b07800338f4a10e5b7
parent8b930bdb9c950e118a2c53f1b576f73ac579cadd
screenshot: Snap cursor to the center of the handle on press

When dragging the screenshot area handle from the outer sides, it is
currently impossible to move them to the edges or corners of the screen,
as the cursor is constrained to the monitor.

Fix this by snapping the cursor to the center of the handle when starting
the resize operation.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/9113
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4158>
js/ui/screenshot.js